package ocean.inventoryprotection.common;

import net.minecraft.item.Item;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import ocean.InventoryProtection;
import ocean.inventoryprotection.common.world.item.Protector;

/**
 * 物品加载
 *
 * @author zhang
 * @since 2021/11/3
 */
public class ModItems {

    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS,
            InventoryProtection.MODID);

    /**
     * 保护符
     */
    public static final RegistryObject<Item> PROTECTOR = ITEMS.register("protector",
            Protector::new);

    public static void register(IEventBus bus) {
        ITEMS.register(bus);
    }
}